/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.equipment.entity.EleEquipment;
import com.thinkgem.jeesite.modules.source.entity.EleSourceGroup;
import com.thinkgem.jeesite.modules.sys.entity.User;

/**
 * 节目包管理DAO接口
 * @author ZC
 * @version 2017-05-25
 */
@MyBatisDao
public interface EleSourceGroupDao extends CrudDao<EleSourceGroup> {
	int batchUpdateGroupStatus(@Param("groups")String groups,@Param("status")String status,@Param("checker")String checker, @Param("comment")String comment);
    List<EleSourceGroup> findEleEleSourceGroupForCheck(@Param("users")List<User> list,@Param("status")String status);
    List<EleSourceGroup> findEleEleSourceGroupForCheckForProgram(@Param("users")List<User> list,@Param("status")String status);
    List<EleSourceGroup> findEleEleSourceGroupForCheckForProgram(EleSourceGroup eleSourceGroup, @Param("users")List<User> list,@Param("status")String status);

    EleSourceGroup getGroupById(@Param("groupId")String groupId);
    List<EleSourceGroup> findListByType(@Param("type")String type,@Param("remarks")String remarks);
    List<EleSourceGroup> findSourceGroupsOnEquipmentByType(@Param("equipmentId")String equipmentId,@Param("sourceStatus")String sourceStatus,@Param("sourceVisible")String sourceVisible,@Param("sourceType")String sourceType);

    void deleteFromDB(@Param("groupId")String groupId);
}